import request from '@/api/request.js'

// 查询用户信息
export const getPersonalMsg = (id) => {
    return request({
        url: `/personal/personalMsg?user_id=${id}`,
        method: 'GET'
    })
}

// 获取用户头像
export const getProfileImage = (id) => {
    return request({
        url: `/personal/getProfileImage?user_id=${id}`,
        method: 'GET'
    })
}

// 修改用户信息
export const updatePersonalMsg = (data) => {
    return request({
        url: 'personal/personalMsg',
        method: 'POST',
        data
    })
}
// 上传用户头像
export const profileImage = (data) => {
    return request({
        url: '/personal/profileImage',
        method: 'POST',
        timeout: 500000,
        data
    })
}
